// src/types/api.types.ts

// API相关类型定义
export interface ApiResponse<T> {
  status: string;
  message: string;
  data: T;
}

export interface User {
  userId: string;
  username: string;
  email: string;
  token?: string;
}

export interface LoginRequest {
  email: string;
  password: string;
}

export interface LoginResponse extends ApiResponse<User> {}

export interface RegisterRequest {
  username: string;
  email: string;
  password: string;
}

export interface RegisterResponse extends ApiResponse<User> {}